BIN=$(patsubst %.cpp, %, $(wildcard *.cpp))

MYSQL=/usr/local/mysql

CXXFLAGS+=-I../  -I/data/usr/include
LDLIBS=-L../ -lcomm -lpthread

all : $(BIN)

mysql_s : LDLIBS += -L$(MYSQL)/lib -lmysqlclient CFLAGS += -I$(MYSQL)/include

comm_lua : LDLIBS += -L$(LUA)/lib -llua -lm -ldl

clean : 
	@touch *.c *.cpp

